package com.xujie.sportsmeeting.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公告阅读记录实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice_read_record")
public class NoticeReadRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公告ID
     */
    @TableField("notice_id")
    private Long noticeId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 阅读时间
     */
    @TableField("read_time")
    private LocalDateTime readTime;
}
